package vis.core.service.captcha;

import java.util.Map;

/**
 * 验证码
 */
public interface CaptchaService {

    Map getLoginImg();

    boolean checkLogin(String id, String code);

    boolean sendEmailRegister(String toEmail);

    boolean checkEmailRegister(String toEmail, String captcha);

    boolean delEmailRegister(String toEmail, String captcha);

    boolean sendPhoneRegister(String toPhone);

    boolean checkPhoneRegister(String toPhone, String captcha);

    boolean delPhoneRegister(String toPhone, String captcha);
}
